package com.ruoyi.equipment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备管理对象 tb_equipment
 * 
 * @author liuer
 * @date 2024-10-27
 */
public class Equipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String eName;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String eModel;

    /** 设备品牌 */
    @Excel(name = "设备品牌")
    private String eBrand;

    /** 设备用途 */
    @Excel(name = "设备用途")
    private String ePurpose;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String eState;

    /** 设备最近连接时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备最近连接时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eConnectTime;

    /** 连接方式 */
    @Excel(name = "连接方式")
    private String eConnectType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void seteName(String eName) 
    {
        this.eName = eName;
    }

    public String geteName() 
    {
        return eName;
    }
    public void seteModel(String eModel) 
    {
        this.eModel = eModel;
    }

    public String geteModel() 
    {
        return eModel;
    }
    public void seteBrand(String eBrand) 
    {
        this.eBrand = eBrand;
    }

    public String geteBrand() 
    {
        return eBrand;
    }
    public void setePurpose(String ePurpose) 
    {
        this.ePurpose = ePurpose;
    }

    public String getePurpose() 
    {
        return ePurpose;
    }
    public void seteState(String eState) 
    {
        this.eState = eState;
    }

    public String geteState() 
    {
        return eState;
    }
    public void seteConnectTime(Date eConnectTime) 
    {
        this.eConnectTime = eConnectTime;
    }

    public Date geteConnectTime() 
    {
        return eConnectTime;
    }
    public void seteConnectType(String eConnectType) 
    {
        this.eConnectType = eConnectType;
    }

    public String geteConnectType() 
    {
        return eConnectType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("eName", geteName())
            .append("eModel", geteModel())
            .append("eBrand", geteBrand())
            .append("ePurpose", getePurpose())
            .append("eState", geteState())
            .append("eConnectTime", geteConnectTime())
            .append("eConnectType", geteConnectType())
            .toString();
    }
}
